import os
from dotenv import load_dotenv

# 导入 LangChain 的 ChatOpenAI 类
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="deepseek-chat",
    openai_api_key=os.getenv("OPENAI_API_KEY"),
    openai_api_base="https://api.deepseek.com"
)

# 没有记忆
while True:
    prompt = input("请输入：")
    response = llm.invoke(prompt) #invoke方法发送消息
    print(response.content)




